<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php
		if(!empty($Config['Config']['title']))
		{
			echo $Config['Config']['title'];
		} else {
			echo("MultiRio");
		}
		?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('normalize.min', 'bootstrap', 'switchery.min', 'style'));
		echo $this->Html->script(array('jquery','scripts', 'switchery.min', 'maskinput'));

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>

	<script>
	$(function () {
		var austDay = new Date();
		austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
		$('#defaultCountdown').countdown({until: new Date(2015, 2-1, 15), format: 'odHMs'});
		$('#year').text(austDay.getFullYear());
	});
	</script>
</head>
<body>

	<div class="content">

		<?php echo $this->Session->flash(); ?>
		<?php echo $this->fetch('content'); ?>

	</div>

	<script type="text/javascript">
	var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));

	elems.forEach(function(html) {
		var switchery = new Switchery(html);
	});
	</script>


</body>
</html>
